import { View } from '@tarojs/components';
import { useDidShow } from '@tarojs/taro';
import { TabbarUtil } from '@/utils/tabbar';
import './index.scss';

const My = () => {
  useDidShow(() => {
    console.log('My page did show');
    // 我的页面根据是否有 shopId 来控制 tabbar 显示
    TabbarUtil.autoControlTabbar();
  });

  return (
    <View className="my-page">
      <View className="page-title">我的</View>
      <View className="page-content">
        个人中心页面
      </View>
    </View>
  );
};

export default My;
